<?php
/**
 * Survey Header - Block
 * 
 * @author	Xavier VILAIN
 * @package Nawa\Survey
 * @license #license-nawa-survey#
 * 
 */
use Fox\Generator;
use Fox\Html\DropList;
use Fox\Html\Input;
use Fox\Html\Block;
use Fox\Html\TextArea;
$xview = Xview::instance();
$block = new Block('bHeader',Msg(Fox\Msg::BUNDLE,Fox\Msg::MSG_MASTER_DATA));
// Label
$block->add(new Input(array('survey_label','label'),true));
// Language
$block->add(new DropList('language',true,false,true))
		->options($xview->languages());
// Category ?
$block->add(new DropList('category',true,false,true))
		->options(\Fox\Dao::finder(\Nawa\Survey\Category::className())->find(),'category',Generator::call('label'));
// Type ?
//$block->add(new DropList('category',true,false,true))
//		->options($xview->languages());
// Duration ?
//@TODO
return $block;